package com.audaque.cloud.iqs.dbs.vo;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 字段信息
 * @author: 罗勇
 * @date: 2020-10-23 16:23
 */
@Data
@Schema(description = "字段信息")
@NoArgsConstructor
@SuppressFBWarnings(value = {"EI_EXPOSE_REP", "EI_EXPOSE_REP2"})
public class ColumnInfo  implements java.io.Serializable {
	@Schema(description = "id")
	private Long id;

	@Schema(description = "字段名称")
	private String colName;

	@Schema(description = "注释")
	private String colDesc;

	@Schema(description = "字段类型")
	private String colType;

	@Schema(description = "字段长度")
	private Long colLength;

	@Schema(description = "字段精度")
	private Integer colPrecision;

	/** 是否主键，1-主键 0-非主键 */
	@Schema(description = "是否主键，1-主键 0-非主键", type = "String")
	private String keyFlag;

	@Schema(description = "是否可为null   0 不可为空  1 可以为null")
	private String nullable;

	@Schema(description = "数据源id", type = "Integer")
	private Long dbId;

	@Schema(description = "表名", type = "String")
	private String tableName;

	@Schema(description = "字段排序", type = "Integer")
	private Integer colSeq;

	@Schema(description = "数据类型：1字符串 2数字 3日期", type = "Integer")
	private Integer colDataType = 1;
}